{% extends 'layout2.html' %}
{% block content %}
<div class="panel panel-default">
    <div class="panel-body">
        <form method="post" novalidate>
            {% csrf_token %}
            <div class="form-group">
                <label>用户名： {{request.session.info.username}}</label>
            </div>
            <div class="form-group">
                {{form.password}}
                <span style="color: red;">{{form.password.errors.0}}</span>
            </div>
            <div class="form-group">
                 {{form.confirm_password}}
                <span style="color: red;">{{form.confirm_password.errors.0}}</span>
            </div>
            <button type="submit" class="btn btn-primary">确认</button>
        </form>
    </div>
</div>
{% endblock %}